package com.example.testlaunchbroswer;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MyActivity extends Activity {

	public static final String PARAM_NAME = "name";
	public static final String PARAM_AGE = "age";
	public static final String PARAM_PROFILE = "profile";
	public static final String RESULT_NAME = "resultName";
	public static final String RESULT_AGE = "resultAge";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_my);
		Intent i = getIntent();
		Profile p = (Profile)i.getParcelableExtra(PARAM_PROFILE);
		((TextView)findViewById(R.id.textView1)).setText("name: " + p.name + ", age : " + p.age);
		Button btn = (Button)findViewById(R.id.button11);
		btn.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
			

			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_my, menu);
		return true;
	}

}
